using System;

namespace csammisrun.OscarLib
{
	/// <summary>
	/// Encapsulates the result of a directory search
	/// </summary>
	public struct DirectoryEntry
	{
		/// <summary>
		/// First name
		/// </summary>
		public string FirstName;
		/// <summary>
		/// Last name
		/// </summary>
		public string LastName;
		/// <summary>
		/// Middle name
		/// </summary>
		public string MiddleName;
		/// <summary>
		/// Maiden name
		/// </summary>
		public string MaidenName;
		/// <summary>
		/// Email address
		/// </summary>
		public string Email;
		/// <summary>
		/// Country of residence
		/// </summary>
		public string Country;
		/// <summary>
		/// State of residence
		/// </summary>
		public string State;
		/// <summary>
		/// City of residence
		/// </summary>
		public string City;
		/// <summary>
		/// User's screenname
		/// </summary>
		public string ScreenName;
		/// <summary>
		/// Interest
		/// </summary>
		/// <remarks>Format unknown</remarks>
		public string Interest;
		/// <summary>
		/// Nick name
		/// </summary>
		public string NickName;
		/// <summary>
		/// ZIP code
		/// </summary>
		public string ZIPCode;
		/// <summary>
		/// The region of the strings
		/// </summary>
		/// <remarks>This will most likely be "us-ascii"</remarks>
		public string Region;
		/// <summary>
		/// Street address
		/// </summary>
		public string Address;

		/// <summary>
		/// Creates a new DirectoryEntry structure and initializes its members to <paramref name="init"/>
		/// </summary>
		/// <param name="init">The string with which to initialize the structure members</param>
		public DirectoryEntry(string init)
		{
			FirstName = LastName = MiddleName = MaidenName = init;
			Email = Country = State = City = init;
			ScreenName = Interest = NickName = ZIPCode = init;
			Region = Address = init;
		}
	}
}
